#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_Makefile.hev.dpatch by  <varunhiremath@gmail.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad fpc-2.2.0~/fpcdocs/Makefile.hev fpc-2.2.0/fpcdocs/Makefile.hev
--- fpc-2.2.0~/fpcdocs/Makefile.hev	2005-05-16 15:39:26.000000000 -0300
+++ fpc-2.2.0/fpcdocs/Makefile.hev	2007-10-02 01:19:14.000000000 -0300
@@ -3,13 +3,16 @@
 #
 
 %.chk: %.tex fpc-hevea.tex
-	cp -f preamble.hev preamble.inc
+	cp -f preamble.hevea preamble.inc
 	$(HEVEA) $(HEVEAOPTS) $<
 	touch $(basename $<).chk
+	mkdir $(basename $<)
+	mv -f $(basename $<).html $(basename $<)/$(basename $<).html
 
 user.chk: $(INCLUDES) user.tex messages.inc
 prog.chk: $(INCLUDES) prog.tex
 onechap.chk: $(INCLUDES) onechap.tex
 ref.chk: $(INCLUDES) ref.tex
+rtl.chk: $(INCLUDES) rtl.tex
 fpdoc.chk: $(INCLUDES) fpdoc.tex
 
